package edu.berkeley.cs160.innovationers.shoppersidekick;

import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.text.util.Linkify;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;


public class MyListAdapter extends BaseAdapter {
	 
    protected List ContentList;
    protected Context context;
 
    
    public static class ViewHolder {  
        // back reference to our list object  
        public Object data;  
    }  
    
    public MyListAdapter(List SLL, Context context) {
        this.ContentList = SLL;
        this.context = context;
    }
 
    @Override
    public boolean areAllItemsEnabled(){
    	return false;
    	
    }
    
    @Override
    public boolean isEnabled(int position) {
    	return false;
    }
    public int getCount() {
        return ContentList.size();
    }
 
    public Object getItem(int position) {
        return ContentList.get(position);
    }
 
    public long getItemId(int position) {
        return position;
    }
 
    public View getView(int position, View convertView, ViewGroup parent) {
    	return convertView;
    }
   
 
}